package com.ruoyi.doctor.mapper;

import com.ruoyi.doctor.domain.DoctorPatient;
import com.ruoyi.doctor.domain.DoctorPeople;
import com.ruoyi.system.domain.SysRegister;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DoctorPatientMapper {

    //根据身份证查询科室表
    DoctorPatient queryBy(DoctorPatient patient);

    //根据身份证查询
    DoctorPatient queryBySfz(String patientCard);

    //查询部门
    List<DoctorPeople> queryByDept(String deptName);

    //查询挂号费
    SysRegister queryFee(Long regisId);

    //患者选择科室添加科室
    int addDept(int patientId,Long deptId);


    //修改当前人数
    int updatePeople(int deptId,int beforecode);

    //添加患者
    int addPatient(DoctorPatient patient);

    //修改患者挂号类型
    int updateRegis(int patientId,Long regisId);

    //添加科室id
    int updateDept(int patientId,int deptId);


}
